/**
 * FileName: MyConfig
 * Author:   xing.yang@vcg.com
 * Date:     2020/7/9 16:49
 * Description: 配置添加controller
 */
package com.vcg.vdam.aop;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean
    public MyJarController myJarController(){
        return new MyJarController();
    }

    @Bean
    @ConditionalOnProperty(prefix = "test.yx",name = "age",havingValue = "23")
    public VdamFilter myVdamFilter(){
        return new VdamFilter();
    }

    @Bean
    public MyAop findMyAop(){
        MyAop myAop = new MyAop();
        return myAop;
    }
}
